package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 品牌
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("brand_owner")
@Getter
@Setter
public class BrandOwner extends Model<BrandOwner> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 品牌名称
     */
	@TableField("brand_name")
	private String brandName;
    /**
     * 品牌图标
     */
	@TableField("brand_icon")
	private String brandIcon;
    /**
     * 是否删除 0：否；1：是
     */
	@TableField("is_del")
	private Integer isDel;
    /**
     * 创建人
     */
	@TableField("create_user_name")
	private String createUserName;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 最后修改时间
     */
	@TableField("last_modified_time")
	private Date lastModifiedTime;

	@TableField("solution_count")
	private Integer solutionCount;

	@TableField("brand_firm_count")
	private Integer brandFirmCount;

	/**
	 * 排序号
	 */
	@TableField("sort")
	private Integer sort;
	/**
	 * 修改人UID
	 */
	@TableField("modified_by")
	private Long modifiedBy;
	/**
	 * 操作人
	 */
	@TableField("operator")
	private String operator;

	@TableField(exist = false)
	private Integer count;
	@TableField(exist = false)
	private Integer userId;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
